package org.lonetree.tc.webapp.actions;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class ModifyCourse extends AdminAction {

	@Override
	protected ActionForward executeAdmin(ActionMapping mapping,
			ActionForm form, HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		
		try
		{
			
			
			request.setAttribute("course.modify.message", "Course has been updated");
			
			return mapping.findForward("success");
		} catch (Exception e) 
		{
			request.setAttribute("course.modify.message", "Course failed to update");
			
			return mapping.findForward("failure");
		}
	}

}
